#ifndef PLAYWID_H
#define PLAYWID_H

#include <QGraphicsPixmapItem>
#include <QApplication>
#include <qdebug.h>
#include <QPixmap>

class playWid : public QObject, public QGraphicsPixmapItem
{
        Q_OBJECT
public:
    playWid(bool isPlaying, QString playIcon, QString pauseIcon);

private:
    QPixmap * playPix;
    QPixmap * pausePix;
    void mousePressEvent(QGraphicsSceneMouseEvent * event);

signals:
    void pauseToggled();

public slots:
    void updateStatus(bool status);
};

#endif // PLAYWID_H
